import { createRouter, /*createWebHistory,*/ createWebHashHistory } from 'vue-router';
import DecisionView from '../views/DecisionView.vue';

const router = createRouter({
    // history: createWebHistory(import.meta.env.BASE_URL), // History模式
    history: createWebHashHistory(), // Hash模式
    routes: [
        {
            path: '/',
            name: 'decisionView',
            component: DecisionView
        },
        {
            path: '/app:page(\\d{2})',
            name: 'lsdApp',
            component: () => import('../views/AppLsd.vue'),
        },
        {
          path: '/app:detailId(\\d{8})',
          name: 'appDetail',
          component: () => import('../views/AppDetail.vue')
      }
    ]
});

export default router;
